package com.czkt.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Objects;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2024-06-18
 */
@Data
@Accessors(chain = true)
public class SysRight implements Serializable {

    private static final long serialVersionUID = 1L;

    private String rightCode;

    private String rightParentCode;

    private String rightType;

    private String rightText;

    private String rightUrl;

    private String rightTip;
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysRight sysRight = (SysRight) o;
        return Objects.equals(rightCode, sysRight.rightCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(rightCode);
    }

}
